package com.zzyl;

import com.baidubce.qianfan.Qianfan;
import com.baidubce.qianfan.core.auth.Auth;
import com.baidubce.qianfan.model.chat.ChatResponse;

public class AIModelTest {
    private static final String prompt = "你是谁";
    public static void main(String[] args) {
//        Qianfan qianfan = new Qianfan(Auth.TYPE_OAUTH,"AYbQbm54Yw4eqgAKkMvOzG2w","UT3SluA0aHwkySf7xZoOjf4PAfMNpLeN");
//        ChatResponse chatResponse = qianfan.chatCompletion()
//                .model("ERNIE-4.0-8K")
//                .addMessage("user", prompt)
//                .execute();
//        String result = chatResponse.getResult();
//        System.out.println(result);


    }
}
